package com.qh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/* 声明当前类是一个启动类 */
@SpringBootApplication//放行静态资源+开启spring对mvc的支持+扫描包路径
/* 扫描mapper接口 */
@MapperScan("com.qh.*.mapper")
@ServletComponentScan(value = "com.qh.basic.listener")
/**
 * 启动类
 */
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class);
    }
}
